<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class User
 * 
 * @property int $id
 * @property int $hall_id
 * @property string $username
 * @property int $agent_id
 * @property string $agent_name
 * @property string $email
 * @property string $mobile
 * @property string $mobile_zone
 * @property \Carbon\Carbon $mobile_update_time
 * @property string $salt
 * @property string $password
 * @property string $google_auth_key
 * @property int $level_id
 * @property int $is_level_lock
 * @property \Carbon\Carbon $level_update_time
 * @property string $register_ip
 * @property int $status
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class User extends Eloquent
{
	protected $table = 'user';

	protected $casts = [
		'hall_id' => 'int',
		'agent_id' => 'int',
		'level_id' => 'int',
		'is_level_lock' => 'int',
		'status' => 'int'
	];

	protected $dates = [
		'mobile_update_time',
		'level_update_time'
	];

	protected $hidden = [
		'salt',
		'password',
		'google_auth_key'
	];

	protected $fillable = [
		'username',
		'agent_id',
		'agent_name',
		'email',
		'mobile',
		'mobile_zone',
		'mobile_update_time',
		'salt',
		'password',
		'google_auth_key',
		'level_id',
		'is_level_lock',
		'level_update_time',
		'register_ip',
		'status'
	];
}
